package org.nyt.medicalstore.service;

import org.apache.coyote.BadRequestException;
import org.nyt.medicalstore.model.Drug;
import org.nyt.medicalstore.model.DrugSimilarity;

import java.util.List;

public interface DrugSimilarityService {
    //获取相关药品
    public List<Drug> getSimilarDrugs(Long drugId, Double minScore);
    //添加药品相关度
    public DrugSimilarity addSimilarity(Long drug1Id, Long drug2Id, Double score) throws BadRequestException;
    //删除症状和药品的关系
    public void deleteDrugSimilarity(Long drug1Id, Long drug2Id) throws BadRequestException;
}
